package com.jiu345.api.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.math.BigDecimal;
import java.util.List;

/**
 * 商品属性值对象 mall_goods_skus
 *
 * @author MrLei QQ:235921049
 * @date 2024-05-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("mall_goods_spec")
public class SkusSpec extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /* id */
    @TableId(value = "id")
    private Long id;

    /* 规格名称 */
    private String name;

    /*商品ID*/
    private Long goodsId;
    @TableField(exist = false)
    private String goodsName;

    /*属性值*/
    @TableField(exist = false)
    private List<SkusSpecValue> specValue;
}
